﻿using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.Web.Mvc;
using System.Collections.Generic;

namespace MvcMusicStore.Models
{
    public class UserInfo
    {
        
        //[ScaffoldColumn(false)]
        //public int UserId { get; set; }

        [Key]
        [Required(ErrorMessage = "{0] is required")]
        [StringLength(160, ErrorMessage = "160 characters")]
        public string UserName { get; set; }

        //[Required(ErrorMessage = "{0} is required")]
        //[MinLength(6, ErrorMessage = "{0} must be at least {1} characters long")]
        //public string Password { get; set; }

        [StringLength(160, ErrorMessage = "160 characters")]
        public string Address { get; set; }

        [StringLength(50, ErrorMessage = "50 characters")]
        public string City { get; set; }

        [DataType(DataType.PhoneNumber)]
        [StringLength(20, ErrorMessage = "20 characters")]
        public string Phone { get; set; }

        [Required(ErrorMessage = "{0] is required")]
        [DataType(DataType.EmailAddress)]
        public string Email { get; set; }

    }
}